package com.smzd.projforge.domain;

import com.smzd.core.annotations.ModuleGroup;
import com.smzd.core.domain.BaseScopeEntity;

@ModuleGroup(value = "projforge")
public class MTMRelation extends BaseScopeEntity<Project> {
	private static final long serialVersionUID = -2631719563385377565L;
	public static final int CREATE_MODE_CLASSES = 0;
	public static final int CREATE_MODE_FIELDS = 1;
	

	private DynaClass master;
	private DynaClass slave;
	private DynaClass relation;
	private DynaAttribute masterField;
	private DynaAttribute slaveField;
	private int type;
	
	private int createMode;

	public MTMRelation() {
	}

	public MTMRelation(DynaClass master, DynaClass slave) {
		this.master = master;
		this.slave = slave;
	}

	public DynaClass getMaster() {
		return master;
	}

	public void setMaster(DynaClass master) {
		this.master = master;
	}

	public DynaClass getSlave() {
		return slave;
	}

	public void setSlave(DynaClass slave) {
		this.slave = slave;
	}

	public DynaClass getRelation() {
		return relation;
	}

	public void setRelation(DynaClass relation) {
		this.relation = relation;
	}

	public DynaAttribute getMasterField() {
		return masterField;
	}

	public void setMasterField(DynaAttribute masterField) {
		this.masterField = masterField;
	}

	public DynaAttribute getSlaveField() {
		return slaveField;
	}

	public void setSlaveField(DynaAttribute slaveField) {
		this.slaveField = slaveField;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getCreateMode() {
		return createMode;
	}

	public void setCreateMode(int createMode) {
		this.createMode = createMode;
	}
}
